package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("kunkun.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("全民制作人们大家好,我是练习时长两年半的个人偶像练习生,坤坤");
        osw.write("喜欢唱跳rap篮球");
        System.out.println("写完了");
        osw.close();
    }
}
